#ifndef GRADIENTACTION_H
#define GRADIENTACTION_H
#include "AbstractAction.h"
#include "LinearCoreGenerator.hpp"
#include "Ptr.hpp"



using namespace OOPUtils;



class GradientAction : public AbstractAction
{
public:

	GradientAction ();

	virtual void updatePreview (QRect viewport);

	virtual void handleStartEvent ();

	virtual void rejectAction ();

	virtual void applyAction ();

	void setCoreGenerator (Ptr< LinearCoreGenerator > coreGenerator);

private:
	
	Ptr< LinearCoreGenerator > _coreGenerator;

};

#endif // GRADIENTACTION_H
